import { Space, Table, Tag } from 'antd';
import https from "../service/http";
import { React, useState, useEffect } from 'react';



const columns = [
    {
        title: '序号',
        dataIndex: 'key',
        with: 100,
    },
    {
        title: '功能',
        dataIndex: 'name',
    },
    {
        title: '发布数量',
        dataIndex: 'num',
    },
    {
        title: '占比',
        dataIndex: 'ratio',
    },
];
const data = [];
const name = ['通知', '公告', '活动', '家园任务', '缴费通知', '选课通知', '作业', '请假', '发布相册', '评价', '投票', '带药提醒'];
for (let i = 1; i <= name.length; i++) {
    data.push({
        key: i,
        name: name[i - 1],
        num: i,
        ratio: 1 + '%',

    });
}

const MessageListTable = () => <Table
    className='Table'
    bordered
    pagination={false}
    columns={columns}
    dataSource={data}
/>;
export default MessageListTable;